package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class AddOverridingMethodSpecification implements AlterTypeAction {

    private int beginIndex;
    private int endIndex;
    private OverridingMethodSpecification overridingMethodSpecification;

    public AddOverridingMethodSpecification(int beginIndex,
                                            OverridingMethodSpecification overridingMethodSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = overridingMethodSpecification.getEndIndex();
        this.overridingMethodSpecification = overridingMethodSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public OverridingMethodSpecification getOverridingMethodSpecification() {
        return overridingMethodSpecification;
    }

}
